home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 44 / PC Actual CD 44.iso / OctagonEurope / Instabase.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-11-22  |  24.7 KB  |  1,706 lines

  1. import java.applet.Applet;
  2. import java.awt.Button;
  3. import java.awt.Checkbox;
  4. import java.awt.CheckboxGroup;
  5. import java.awt.Color;
  6. import java.awt.Component;
  7. import java.awt.Container;
  8. import java.awt.Event;
  9. import java.awt.Font;
  10. import java.awt.Graphics;
  11. import java.awt.Image;
  12. import java.awt.Label;
  13. import java.awt.LayoutManager;
  14. import java.awt.MediaTracker;
  15. import java.awt.TextArea;
  16. import java.awt.TextComponent;
  17. import java.awt.TextField;
  18. import java.io.DataInputStream;
  19. import java.io.EOFException;
  20. import java.io.IOException;
  21. import java.net.MalformedURLException;
  22. import java.net.URL;
  23. import java.util.StringTokenizer;
  24.  
  25. public class Instabase extends Applet implements Runnable {
  26.    Thread mainThread;
  27.    WaitThread waitThread;
  28.    BarThread barThread;
  29.    // $FF: renamed from: t1 java.awt.TextField
  30.    TextField field_0;
  31.    // $FF: renamed from: l1 java.awt.Label
  32.    Label field_1;
  33.    // $FF: renamed from: l2 java.awt.Label
  34.    Label field_2;
  35.    // $FF: renamed from: l3 java.awt.Label
  36.    Label field_3;
  37.    // $FF: renamed from: l4 java.awt.Label
  38.    Label field_4;
  39.    // $FF: renamed from: l5 java.awt.Label
  40.    Label field_5;
  41.    // $FF: renamed from: l6 java.awt.Label
  42.    Label field_6;
  43.    // $FF: renamed from: l7 java.awt.Label
  44.    Label field_7;
  45.    // $FF: renamed from: l8 java.awt.Label
  46.    Label field_8;
  47.    // $FF: renamed from: l9 java.awt.Label
  48.    Label field_9;
  49.    Label l10;
  50.    Label l11;
  51.    Label l12;
  52.    Label l13;
  53.    Label l14;
  54.    Label l15;
  55.    Label l16;
  56.    Label l17;
  57.    TextField t10;
  58.    TextField t11;
  59.    TextField t12;
  60.    TextField t13;
  61.    TextField t14;
  62.    TextField t15;
  63.    TextField t16;
  64.    TextField t17;
  65.    // $FF: renamed from: t2 java.awt.TextField
  66.    TextField field_10;
  67.    // $FF: renamed from: t3 java.awt.TextField
  68.    TextField field_11;
  69.    // $FF: renamed from: t4 java.awt.TextField
  70.    TextField field_12;
  71.    // $FF: renamed from: t5 java.awt.TextField
  72.    TextField field_13;
  73.    // $FF: renamed from: t6 java.awt.TextField
  74.    TextField field_14;
  75.    // $FF: renamed from: t7 java.awt.TextField
  76.    TextField field_15;
  77.    // $FF: renamed from: t8 java.awt.TextField
  78.    TextField field_16;
  79.    // $FF: renamed from: t9 java.awt.TextField
  80.    TextField field_17;
  81.    Button button1;
  82.    Button button2;
  83.    Button button3;
  84.    TextField tfsearch;
  85.    Label label1;
  86.    Label templabel;
  87.    Label l18;
  88.    Button BView;
  89.    Button BComments;
  90.    Checkbox rb1;
  91.    CheckboxGroup Group1;
  92.    Checkbox rb2;
  93.    Checkbox rb3;
  94.    Checkbox rb4;
  95.    Checkbox rb5;
  96.    Checkbox rb6;
  97.    Checkbox rb7;
  98.    Checkbox rb8;
  99.    Button BFirst;
  100.    Button BPrev;
  101.    Button BNext;
  102.    Button BLast;
  103.    Button BCreated;
  104.    Label LReg;
  105.    Label LNrRec;
  106.    Button bGo3;
  107.    Button bGo4;
  108.    Button bGo5;
  109.    Button bGo6;
  110.    Button bGo7;
  111.    Button bGo8;
  112.    Button bGo9;
  113.    Button bGo10;
  114.    Button bGo11;
  115.    Button bGo12;
  116.    Button bGo13;
  117.    Button bGo14;
  118.    Button bGo15;
  119.    Button bGo16;
  120.    Button bGo17;
  121.    TextArea t18;
  122.    Checkbox rb9;
  123.    Checkbox rb10;
  124.    Checkbox rb11;
  125.    Checkbox rb12;
  126.    Checkbox rb16;
  127.    Checkbox rb15;
  128.    Checkbox rb14;
  129.    Checkbox rb13;
  130.    Label norec;
  131.    Label lmess;
  132.    Label bar1;
  133.    Label bar2;
  134.    Label bar3;
  135.    Label bar4;
  136.    Label bar5;
  137.    Label bar6;
  138.    Label bar7;
  139.    Label bar8;
  140.    Label bar9;
  141.    Label bar10;
  142.    Label label_bar;
  143.    Color labelColor;
  144.    Color mycolor = new Color(143, 131, 184);
  145.    Color Appletcolor;
  146.    int fnr;
  147.    int cnt;
  148.    int icnt;
  149.    int nr_rec;
  150.    int current;
  151.    int prev_curr;
  152.    int first_pos;
  153.    int CurrentRecord;
  154.    int Register;
  155.    String file1;
  156.    String file2;
  157.    String site;
  158.    String dataname;
  159.    String image;
  160.    String comment;
  161.    String imgcom;
  162.    int max_no_rec;
  163.    int local_no_rec;
  164.    boolean isLocal;
  165.    // $FF: renamed from: db java.lang.String[][]
  166.    String[][] field_18;
  167.    int[] stab;
  168.    int c_d = 1;
  169.    Checkbox[] vec_rb = new Checkbox[16];
  170.    Checkbox temprb;
  171.    URL UrlGlobal;
  172.    Label[] lbar = new Label[10];
  173.    Image ImageC;
  174.    String sProvider = new String("w");
  175.    Font ft1 = new Font("Arial", 1, 26);
  176.    Font ft2 = new Font("Arial", 1, 24);
  177.    int[] posx = new int[]{16, 5, 1, 5, 16, 27, 31, 26};
  178.    int[] posy = new int[]{1, 5, 16, 27, 31, 27, 16, 5};
  179.    int aidx = 1;
  180.    int oldaidx;
  181.    int upd;
  182.  
  183.    public void show_data() {
  184.       Label[] var1 = new Label[]{this.field_1, this.field_2, this.field_3, this.field_4, this.field_5, this.field_6, this.field_7, this.field_8, this.field_9, this.l10, this.l11, this.l12, this.l13, this.l14, this.l15, this.l16, this.l17};
  185.       TextField[] var2 = new TextField[]{this.field_0, this.field_10, this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
  186.       byte var3 = 1;
  187.       if (this.c_d != 0) {
  188.          var3 = 0;
  189.       }
  190.  
  191.       for(int var4 = var3; var4 < this.fnr; ++var4) {
  192.          var1[var4].show();
  193.          var2[var4].show();
  194.       }
  195.  
  196.       for(int var5 = 0; var5 < this.fnr - 1 && this.stab[var5] != 0; ++var5) {
  197.          if (this.stab[var5] - 1 < this.fnr && this.stab[var5] >= 2 && this.stab[var5] <= 17) {
  198.             this.vec_rb[this.stab[var5] - 2].show();
  199.          }
  200.       }
  201.  
  202.    }
  203.  
  204.    public void hide_data() {
  205.       Label[] var1 = new Label[]{this.field_1, this.field_2, this.field_3, this.field_4, this.field_5, this.field_6, this.field_7, this.field_8, this.field_9, this.l10, this.l11, this.l12, this.l13, this.l14, this.l15, this.l16, this.l17};
  206.       TextField[] var2 = new TextField[]{this.field_0, this.field_10, this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
  207.       Button[] var3 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
  208.  
  209.       for(int var4 = 0; var4 < 15; ++var4) {
  210.          var1[var4].hide();
  211.          var2[var4].hide();
  212.          var3[var4].hide();
  213.          this.vec_rb[var4].hide();
  214.       }
  215.  
  216.       var1[15].hide();
  217.       var1[16].hide();
  218.       var2[15].hide();
  219.       var2[16].hide();
  220.       this.vec_rb[15].hide();
  221.    }
  222.  
  223.    public void hide_butt() {
  224.       this.BFirst.hide();
  225.       this.BPrev.hide();
  226.       this.BNext.hide();
  227.       this.BLast.hide();
  228.       this.button1.hide();
  229.       this.button2.hide();
  230.       this.button3.hide();
  231.       this.tfsearch.hide();
  232.       this.label1.hide();
  233.       this.LNrRec.hide();
  234.       this.BView.hide();
  235.       this.t18.hide();
  236.       this.l18.hide();
  237.       this.BComments.hide();
  238.    }
  239.  
  240.    public void show_butt() {
  241.       this.BFirst.show();
  242.       this.BPrev.show();
  243.       this.BNext.show();
  244.       this.BLast.show();
  245.       this.button1.show();
  246.       this.button2.show();
  247.       this.button3.show();
  248.       this.tfsearch.show();
  249.       this.label1.show();
  250.       this.LNrRec.show();
  251.       if (this.comment != null) {
  252.          this.BComments.show();
  253.          if (this.imgcom != null) {
  254.             this.l18.show();
  255.             this.t18.show();
  256.          }
  257.       }
  258.  
  259.       if (this.image != null) {
  260.          this.BView.show();
  261.       }
  262.  
  263.    }
  264.  
  265.    public void display_mess(int var1, int var2, String var3) {
  266.       this.lmess.move(var1, var2);
  267.       this.lmess.setAlignment(0);
  268.       this.lmess.setText(var3);
  269.       this.lmess.show();
  270.    }
  271.  
  272.    public void acknoledge() {
  273.       this.BFirst.disable();
  274.       this.BPrev.disable();
  275.       if (this.nr_rec > 1) {
  276.          this.BNext.enable();
  277.          this.BLast.enable();
  278.  
  279.          for(int var1 = 1; var1 < this.fnr; ++var1) {
  280.             this.vec_rb[var1 - 1].enable();
  281.          }
  282.       }
  283.  
  284.       this.barThread.stop();
  285.       this.LNrRec.show();
  286.       this.norec.setText("");
  287.  
  288.       try {
  289.          URL var2 = new URL(((Applet)this).getDocumentBase(), "instabase.html");
  290.  
  291.          try {
  292.             DataInputStream var3 = new DataInputStream(var2.openStream());
  293.  
  294.             try {
  295.                byte var7 = var3.readByte();
  296.                this.LReg.hide();
  297.                this.Register = 0;
  298.             } catch (EOFException var4) {
  299.                this.LReg.show();
  300.                this.Register = 1;
  301.             }
  302.          } catch (IOException var5) {
  303.             this.LReg.show();
  304.             this.Register = 1;
  305.          }
  306.       } catch (MalformedURLException var6) {
  307.          this.LReg.show();
  308.       }
  309.  
  310.       if (this.isLocal) {
  311.          this.hide_butt();
  312.          this.hide_data();
  313.          this.lmess.reshape(5, 25, 610, 16);
  314.          this.display_mess(1, 40, "For local test you can load only 10 records. To see all records you must upload the files to your server...");
  315.          this.BCreated.setLabel("Continue");
  316.          this.BCreated.reshape(250, 65, 70, 20);
  317.          this.BCreated.show();
  318.       }
  319.  
  320.    }
  321.  
  322.    public void run() {
  323.       if (this.waitThread == null) {
  324.          this.waitThread = new WaitThread(this);
  325.          this.waitThread.start();
  326.       }
  327.  
  328.       if (this.barThread == null) {
  329.          this.lbar[0].setText("||");
  330.          this.lbar[1].setText(">");
  331.          this.lbar[9].setText("||");
  332.          this.barThread = new BarThread(this);
  333.          this.barThread.start();
  334.       }
  335.  
  336.    }
  337.  
  338.    void bGo3_Clicked(Event var1, Button var2) {
  339.       TextField[] var3 = new TextField[]{this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
  340.       TextField var4 = this.field_11;
  341.       Button[] var5 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
  342.  
  343.       for(int var6 = 0; var6 < 15; ++var6) {
  344.          if (var2 == var5[var6]) {
  345.             var4 = var3[var6];
  346.             break;
  347.          }
  348.       }
  349.  
  350.       if (((TextComponent)var4).getText().indexOf("http://") != -1) {
  351.          try {
  352.             ((Applet)this).getAppletContext().showDocument(new URL(((TextComponent)var4).getText()), "_blank");
  353.          } catch (MalformedURLException var7) {
  354.          }
  355.       } else if (((TextComponent)var4).getText().indexOf("ftp://") != -1) {
  356.          try {
  357.             ((Applet)this).getAppletContext().showDocument(new URL(((TextComponent)var4).getText()), "_blank");
  358.          } catch (MalformedURLException var8) {
  359.          }
  360.       } else if (((TextComponent)var4).getText().indexOf("www") != -1) {
  361.          try {
  362.             ((Applet)this).getAppletContext().showDocument(new URL("http://" + ((TextComponent)var4).getText()), "_blank");
  363.          } catch (MalformedURLException var9) {
  364.          }
  365.       } else if (((TextComponent)var4).getText().indexOf("@") != -1) {
  366.          try {
  367.             ((Applet)this).getAppletContext().showDocument(new URL("mailto:" + ((TextComponent)var4).getText()), "_self");
  368.          } catch (MalformedURLException var10) {
  369.          }
  370.       }
  371.    }
  372.  
  373.    void BCreated_Clicked(Event var1) {
  374.       this.BCreated.setLabel("Wait");
  375.       this.BCreated.hide();
  376.       this.lmess.setText("");
  377.       this.lmess.hide();
  378.       this.show_butt();
  379.       this.show_data();
  380.       this.upd = 1;
  381.       this.show_record(0);
  382.    }
  383.  
  384.    void BComments_Clicked(Event var1) {
  385.       Object var2 = null;
  386.  
  387.       try {
  388.          URL var5 = new URL(((Applet)this).getCodeBase() + "notes" + this.dataname + this.field_10.getText() + ".txt");
  389.          ((Applet)this).getAppletContext().showDocument(var5, "_blank");
  390.       } catch (MalformedURLException var3) {
  391.          var2 = null;
  392.       }
  393.    }
  394.  
  395.    void BView_Clicked(Event var1) {
  396.       Object var2 = null;
  397.  
  398.       try {
  399.          URL var5 = new URL(((Applet)this).getCodeBase() + this.dataname + this.field_10.getText() + ".jpg");
  400.          ((Applet)this).getAppletContext().showDocument(var5, "_blank");
  401.       } catch (MalformedURLException var3) {
  402.          var2 = null;
  403.       }
  404.    }
  405.  
  406.    void tfsearch_EnterHit(Event var1) {
  407.       this.BFirst.enable();
  408.       this.BPrev.enable();
  409.       this.BNext.enable();
  410.       this.BLast.enable();
  411.    }
  412.  
  413.    void BLast_Clicked(Event var1) {
  414.       this.button1.disable();
  415.       this.button3.disable();
  416.       this.tfsearch.setText("");
  417.       this.templabel.setText("");
  418.       this.show_record(this.nr_rec - 1);
  419.       this.BNext.disable();
  420.       this.BLast.disable();
  421.       this.BFirst.enable();
  422.       this.BPrev.enable();
  423.    }
  424.  
  425.    void BNext_Clicked(Event var1) {
  426.       this.button1.disable();
  427.       this.button3.disable();
  428.       this.tfsearch.setText("");
  429.       this.templabel.setText("");
  430.       if (this.CurrentRecord < this.nr_rec - 1) {
  431.          ++this.CurrentRecord;
  432.          this.show_record(this.CurrentRecord);
  433.       } else {
  434.          this.BNext.disable();
  435.          this.BLast.disable();
  436.       }
  437.  
  438.       this.BFirst.enable();
  439.       this.BPrev.enable();
  440.    }
  441.  
  442.    void BPrev_Clicked(Event var1) {
  443.       this.button1.disable();
  444.       this.button3.disable();
  445.       this.tfsearch.setText("");
  446.       this.templabel.setText("");
  447.       if (this.CurrentRecord > 0) {
  448.          --this.CurrentRecord;
  449.          this.show_record(this.CurrentRecord);
  450.       } else {
  451.          this.BFirst.disable();
  452.          this.BPrev.disable();
  453.       }
  454.  
  455.       this.BNext.enable();
  456.       this.BLast.enable();
  457.    }
  458.  
  459.    void BFirst_Clicked(Event var1) {
  460.       this.button1.disable();
  461.       this.button3.disable();
  462.       this.tfsearch.setText("");
  463.       this.templabel.setText("");
  464.       this.CurrentRecord = 0;
  465.       this.show_record(0);
  466.       this.BFirst.disable();
  467.       this.BPrev.disable();
  468.       this.BNext.enable();
  469.       this.BLast.enable();
  470.    }
  471.  
  472.    void rb1_Action(Event var1) {
  473.       this.tfsearch.setText("");
  474.       this.tfsearch.requestFocus();
  475.       this.button3.disable();
  476.       this.button1.disable();
  477.    }
  478.  
  479.    void button1_Clicked(Event var1) {
  480.       this.temprb = this.Group1.getCurrent();
  481.       String var2 = this.tfsearch.getText();
  482.       if (this.icnt >= 1) {
  483.          --this.icnt;
  484.       }
  485.  
  486.       for(int var3 = 0; var3 <= 15; ++var3) {
  487.          if (this.vec_rb[var3] == this.temprb) {
  488.             if (this.current > 0) {
  489.                this.current = this.search_record(var2, var3 + 1, this.current - 1, -1);
  490.             } else {
  491.                this.templabel.setText("Record Not Found");
  492.                this.button1.disable();
  493.             }
  494.  
  495.             if (this.current >= 0) {
  496.                this.show_record(this.current);
  497.                this.button3.enable();
  498.             }
  499.          }
  500.       }
  501.  
  502.    }
  503.  
  504.    void button3_Clicked(Event var1) {
  505.       this.temprb = this.Group1.getCurrent();
  506.       String var2 = this.tfsearch.getText();
  507.       if (this.icnt <= this.cnt) {
  508.          ++this.icnt;
  509.       }
  510.  
  511.       for(int var3 = 0; var3 <= 15; ++var3) {
  512.          if (this.vec_rb[var3] == this.temprb) {
  513.             this.prev_curr = this.current;
  514.             this.current = this.search_record(var2, var3 + 1, this.current + 1, 1);
  515.             if (this.current >= 0) {
  516.                this.show_record(this.current);
  517.                this.button1.enable();
  518.             } else {
  519.                this.button3.disable();
  520.                if (this.first_pos == this.prev_curr) {
  521.                   this.button1.disable();
  522.                } else {
  523.                   this.button1.enable();
  524.                }
  525.  
  526.                this.current = this.prev_curr;
  527.             }
  528.          }
  529.       }
  530.  
  531.    }
  532.  
  533.    void button2_Clicked(Event var1) {
  534.       this.temprb = this.Group1.getCurrent();
  535.       String var2 = this.tfsearch.getText();
  536.  
  537.       for(int var3 = 0; var3 <= 15; ++var3) {
  538.          if (this.vec_rb[var3] == this.temprb) {
  539.             this.count_record(var2, var3 + 1);
  540.             if (this.cnt > 0) {
  541.                this.current = this.search_record(var2, var3 + 1, 0, 1);
  542.                if (this.current >= 0) {
  543.                   this.show_record(this.current);
  544.                   this.first_pos = this.current;
  545.                   this.button3.enable();
  546.                   this.button1.disable();
  547.                   return;
  548.                }
  549.             }
  550.             break;
  551.          }
  552.       }
  553.  
  554.    }
  555.  
  556.    void count_record(String var1, int var2) {
  557.       int var3 = 0;
  558.       this.cnt = 0;
  559.  
  560.       for(this.icnt = 0; var3 < this.nr_rec; ++var3) {
  561.          if (this.field_18[var3][var2].toLowerCase().indexOf(var1.toLowerCase()) != -1) {
  562.             ++this.cnt;
  563.          }
  564.       }
  565.  
  566.       if (this.cnt > 0) {
  567.          this.icnt = 1;
  568.          if (this.cnt > 1) {
  569.             this.templabel.setText(this.icnt + " of " + this.cnt + " Records Found");
  570.          } else {
  571.             this.templabel.setText(this.icnt + " of " + this.cnt + " Record Found");
  572.          }
  573.       } else {
  574.          this.templabel.setText("Record Not Found");
  575.       }
  576.    }
  577.  
  578.    int search_record(String var1, int var2, int var3, int var4) {
  579.       int var5;
  580.       for(var5 = var3; var5 >= 0 && var5 < this.nr_rec && this.field_18[var5][var2].toLowerCase().indexOf(var1.toLowerCase()) == -1; var5 += var4) {
  581.       }
  582.  
  583.       if (var5 < this.nr_rec) {
  584.          if (this.cnt > 0) {
  585.             if (this.cnt > 1) {
  586.                this.templabel.setText(this.icnt + " of " + this.cnt + " Records Found");
  587.             } else {
  588.                this.templabel.setText(this.icnt + " of " + this.cnt + " Record Found");
  589.             }
  590.          }
  591.  
  592.          return var5;
  593.       } else {
  594.          this.templabel.setText("Record Not Found");
  595.          return -1;
  596.       }
  597.    }
  598.  
  599.    void show_record(int var1) {
  600.       TextField[] var2 = new TextField[]{this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
  601.       Button[] var3 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
  602.       this.field_0.setText(this.field_18[var1][0]);
  603.       this.field_10.setText(this.field_18[var1][1]);
  604.  
  605.       for(int var4 = 0; var4 < this.fnr - 2; ++var4) {
  606.          var2[var4].setText(this.field_18[var1][var4 + 2]);
  607.          if (this.field_18[var1][var4 + 2].indexOf("@") != -1) {
  608.             var2[var4].setForeground(Color.blue);
  609.             var3[var4].show();
  610.          } else {
  611.             var2[var4].setForeground(Color.black);
  612.             var3[var4].hide();
  613.             if (this.field_18[var1][var4 + 2].indexOf("www.") != -1) {
  614.                var2[var4].setForeground(Color.red);
  615.                var3[var4].show();
  616.             } else {
  617.                var2[var4].setForeground(Color.black);
  618.                var3[var4].hide();
  619.                if (this.field_18[var1][var4 + 2].indexOf("http://") != -1) {
  620.                   var2[var4].setForeground(Color.red);
  621.                   var3[var4].show();
  622.                } else {
  623.                   var2[var4].setForeground(Color.black);
  624.                   var3[var4].hide();
  625.                   if (this.field_18[var1][var4 + 2].indexOf("ftp://") != -1) {
  626.                      var2[var4].setForeground(Color.blue);
  627.                      var3[var4].show();
  628.                   } else {
  629.                      var2[var4].setForeground(Color.black);
  630.                      var3[var4].hide();
  631.                   }
  632.                }
  633.             }
  634.          }
  635.       }
  636.  
  637.       if (this.field_18[var1][17].indexOf("1") >= 0) {
  638.          this.BComments.enable();
  639.       } else {
  640.          this.BComments.disable();
  641.          this.t18.setText("");
  642.       }
  643.  
  644.       if (this.field_18[var1][18].indexOf("1") >= 0) {
  645.          this.BView.enable();
  646.       } else {
  647.          this.BView.disable();
  648.       }
  649.  
  650.       this.CurrentRecord = var1;
  651.       if (this.ImageC != null) {
  652.          this.ImageC.flush();
  653.       }
  654.  
  655.       this.ImageC = null;
  656.       if (this.image != null && this.field_18[var1][18].indexOf("1") >= 0) {
  657.          new String(this.dataname + this.field_10.getText() + ".jpg");
  658.          this.ImageC = ((Applet)this).getImage(((Applet)this).getDocumentBase(), this.dataname + this.field_10.getText() + ".jpg");
  659.          MediaTracker var5 = new MediaTracker(this);
  660.          var5.addImage(this.ImageC, 0);
  661.  
  662.          try {
  663.             var5.waitForID(0);
  664.          } catch (InterruptedException var8) {
  665.          }
  666.       }
  667.  
  668.       Object var11 = null;
  669.       String var6 = "";
  670.  
  671.       try {
  672.          if (this.imgcom != null && this.comment != null && this.field_18[var1][17].indexOf("1") >= 0) {
  673.             URL var13 = new URL(((Applet)this).getCodeBase() + "notes" + this.dataname + this.field_10.getText() + ".txt");
  674.             if (this.upd != 1) {
  675.                try {
  676.                   if (this.field_18[var1][17].indexOf("1") >= 0) {
  677.                      DataInputStream var7 = new DataInputStream(var13.openStream());
  678.                      this.t18.setText("");
  679.  
  680.                      while((var6 = var7.readLine()) != null) {
  681.                         this.t18.appendText(var6 + "\n");
  682.                      }
  683.                   }
  684.                } catch (IOException var9) {
  685.                   this.t18.setText("");
  686.                }
  687.             }
  688.          }
  689.       } catch (MalformedURLException var10) {
  690.          var11 = null;
  691.       }
  692.  
  693.       ((Component)this).repaint();
  694.    }
  695.  
  696.    public void init() {
  697.       super.init();
  698.       this.lmess = new Label("File Missing:");
  699.       this.lmess.reshape(5, 25, 245, 16);
  700.       this.lmess.setFont(new Font("Arial", 0, 12));
  701.       this.lmess.setBackground(new Color(12632256));
  702.       ((Container)this).add(this.lmess);
  703.       ((Container)this).setLayout((LayoutManager)null);
  704.       ((Applet)this).resize(605, 375);
  705.       ((Component)this).setBackground(new Color(12632256));
  706.       this.field_0 = new TextField();
  707.       this.field_0.setEditable(false);
  708.       this.field_0.reshape(156, 42, 80, 18);
  709.       this.field_0.setFont(new Font("Helvetica", 1, 11));
  710.       this.field_0.setBackground(new Color(-2302756));
  711.       ((Container)this).add(this.field_0);
  712.       this.field_1 = new Label("");
  713.       this.field_1.reshape(6, 43, 130, 18);
  714.       this.field_1.setFont(new Font("Helvetica", 0, 11));
  715.       ((Container)this).add(this.field_1);
  716.       this.field_2 = new Label("");
  717.       this.field_2.reshape(264, 43, 34, 18);
  718.       this.field_2.setFont(new Font("Dialog", 0, 12));
  719.       ((Container)this).add(this.field_2);
  720.       this.field_3 = new Label("");
  721.       this.field_3.reshape(6, 64, 130, 18);
  722.       this.field_3.setFont(new Font("Helvetica", 0, 11));
  723.       ((Container)this).add(this.field_3);
  724.       this.field_4 = new Label("");
  725.       this.field_4.reshape(6, 84, 130, 18);
  726.       this.field_4.setFont(new Font("Helvetica", 0, 11));
  727.       ((Container)this).add(this.field_4);
  728.       this.field_5 = new Label("");
  729.       this.field_5.reshape(6, 104, 130, 18);
  730.       this.field_5.setFont(new Font("Helvetica", 0, 11));
  731.       ((Container)this).add(this.field_5);
  732.       this.field_6 = new Label("");
  733.       this.field_6.reshape(6, 124, 130, 18);
  734.       this.field_6.setFont(new Font("Helvetica", 0, 11));
  735.       ((Container)this).add(this.field_6);
  736.       this.field_7 = new Label("");
  737.       this.field_7.reshape(6, 144, 130, 18);
  738.       this.field_7.setFont(new Font("Helvetica", 0, 11));
  739.       ((Container)this).add(this.field_7);
  740.       this.field_8 = new Label("");
  741.       this.field_8.reshape(6, 164, 130, 18);
  742.       this.field_8.setFont(new Font("Helvetica", 0, 11));
  743.       ((Container)this).add(this.field_8);
  744.       this.field_9 = new Label("");
  745.       this.field_9.reshape(6, 184, 130, 18);
  746.       this.field_9.setFont(new Font("Helvetica", 0, 11));
  747.       ((Container)this).add(this.field_9);
  748.       this.l10 = new Label("");
  749.       this.l10.reshape(6, 204, 130, 18);
  750.       this.l10.setFont(new Font("Helvetica", 0, 11));
  751.       ((Container)this).add(this.l10);
  752.       this.l11 = new Label("");
  753.       this.l11.reshape(6, 224, 130, 18);
  754.       this.l11.setFont(new Font("Helvetica", 0, 11));
  755.       ((Container)this).add(this.l11);
  756.       this.l12 = new Label("");
  757.       this.l12.reshape(6, 244, 130, 18);
  758.       this.l12.setFont(new Font("Helvetica", 0, 11));
  759.       ((Container)this).add(this.l12);
  760.       this.l13 = new Label("");
  761.       this.l13.reshape(6, 264, 130, 18);
  762.       this.l13.setFont(new Font("Helvetica", 0, 11));
  763.       ((Container)this).add(this.l13);
  764.       this.l14 = new Label("");
  765.       this.l14.reshape(6, 284, 130, 18);
  766.       this.l14.setFont(new Font("Helvetica", 0, 11));
  767.       ((Container)this).add(this.l14);
  768.       this.l15 = new Label("");
  769.       this.l15.reshape(6, 304, 130, 18);
  770.       this.l15.setFont(new Font("Helvetica", 0, 11));
  771.       ((Container)this).add(this.l15);
  772.       this.l16 = new Label("");
  773.       this.l16.reshape(6, 324, 130, 18);
  774.       this.l16.setFont(new Font("Helvetica", 0, 11));
  775.       ((Container)this).add(this.l16);
  776.       this.l17 = new Label("");
  777.       this.l17.reshape(6, 344, 130, 18);
  778.       this.l17.setFont(new Font("Helvetica", 0, 11));
  779.       ((Container)this).add(this.l17);
  780.       this.t10 = new TextField();
  781.       this.t10.setEditable(false);
  782.       this.t10.reshape(156, 204, 230, 18);
  783.       this.t10.setFont(new Font("Helvetica", 0, 11));
  784.       this.t10.setBackground(new Color(-2302756));
  785.       ((Container)this).add(this.t10);
  786.       this.t11 = new TextField();
  787.       this.t11.setEditable(false);
  788.       this.t11.reshape(156, 224, 230, 18);
  789.       this.t11.setFont(new Font("Helvetica", 0, 11));
  790.       this.t11.setBackground(new Color(-2302756));
  791.       ((Container)this).add(this.t11);
  792.       this.t12 = new TextField();
  793.       this.t12.setEditable(false);
  794.       this.t12.reshape(156, 244, 230, 18);
  795.       this.t12.setFont(new Font("Helvetica", 0, 11));
  796.       this.t12.setBackground(new Color(-2302756));
  797.       ((Container)this).add(this.t12);
  798.       this.t13 = new TextField();
  799.       this.t13.setEditable(false);
  800.       this.t13.reshape(156, 264, 230, 18);
  801.       this.t13.setFont(new Font("Helvetica", 0, 11));
  802.       this.t13.setBackground(new Color(-2302756));
  803.       ((Container)this).add(this.t13);
  804.       this.t14 = new TextField();
  805.       this.t14.setEditable(false);
  806.       this.t14.reshape(156, 284, 230, 18);
  807.       this.t14.setFont(new Font("Helvetica", 0, 11));
  808.       this.t14.setBackground(new Color(-2302756));
  809.       ((Container)this).add(this.t14);
  810.       this.t15 = new TextField();
  811.       this.t15.setEditable(false);
  812.       this.t15.reshape(156, 304, 230, 18);
  813.       this.t15.setFont(new Font("Helvetica", 0, 11));
  814.       this.t15.setBackground(new Color(-2302756));
  815.       ((Container)this).add(this.t15);
  816.       this.t16 = new TextField();
  817.       this.t16.setEditable(false);
  818.       this.t16.reshape(156, 324, 230, 18);
  819.       this.t16.setFont(new Font("Helvetica", 0, 11));
  820.       this.t16.setBackground(new Color(-2302756));
  821.       ((Container)this).add(this.t16);
  822.       this.t17 = new TextField();
  823.       this.t17.setEditable(false);
  824.       this.t17.reshape(156, 344, 230, 18);
  825.       this.t17.setFont(new Font("Helvetica", 0, 11));
  826.       this.t17.setBackground(new Color(-2302756));
  827.       ((Container)this).add(this.t17);
  828.       this.field_10 = new TextField();
  829.       this.field_10.setEditable(false);
  830.       this.field_10.reshape(304, 42, 82, 18);
  831.       this.field_10.setFont(new Font("Helvetica", 1, 11));
  832.       this.field_10.setBackground(new Color(-2302756));
  833.       ((Container)this).add(this.field_10);
  834.       this.field_11 = new TextField();
  835.       this.field_11.setEditable(false);
  836.       this.field_11.reshape(156, 64, 230, 18);
  837.       this.field_11.setFont(new Font("Helvetica", 0, 11));
  838.       this.field_11.setBackground(new Color(-2302756));
  839.       ((Container)this).add(this.field_11);
  840.       this.field_12 = new TextField();
  841.       this.field_12.setEditable(false);
  842.       this.field_12.reshape(156, 84, 230, 18);
  843.       this.field_12.setFont(new Font("Helvetica", 0, 11));
  844.       this.field_12.setBackground(new Color(-2302756));
  845.       ((Container)this).add(this.field_12);
  846.       this.field_13 = new TextField();
  847.       this.field_13.setEditable(false);
  848.       this.field_13.reshape(156, 104, 230, 18);
  849.       this.field_13.setFont(new Font("Helvetica", 0, 11));
  850.       this.field_13.setBackground(new Color(-2302756));
  851.       ((Container)this).add(this.field_13);
  852.       this.field_14 = new TextField();
  853.       this.field_14.setEditable(false);
  854.       this.field_14.reshape(156, 124, 230, 18);
  855.       this.field_14.setFont(new Font("Helvetica", 0, 11));
  856.       this.field_14.setBackground(new Color(-2302756));
  857.       ((Container)this).add(this.field_14);
  858.       this.field_15 = new TextField();
  859.       this.field_15.setEditable(false);
  860.       this.field_15.reshape(156, 144, 230, 18);
  861.       this.field_15.setFont(new Font("Helvetica", 0, 11));
  862.       this.field_15.setBackground(new Color(-2302756));
  863.       ((Container)this).add(this.field_15);
  864.       this.field_16 = new TextField();
  865.       this.field_16.setEditable(false);
  866.       this.field_16.reshape(156, 164, 230, 18);
  867.       this.field_16.setFont(new Font("Helvetica", 0, 11));
  868.       this.field_16.setBackground(new Color(-2302756));
  869.       ((Container)this).add(this.field_16);
  870.       this.field_17 = new TextField();
  871.       this.field_17.setEditable(false);
  872.       this.field_17.reshape(156, 184, 230, 18);
  873.       this.field_17.setFont(new Font("Helvetica", 0, 11));
  874.       this.field_17.setBackground(new Color(-2302756));
  875.       ((Container)this).add(this.field_17);
  876.       this.button1 = new Button();
  877.       this.button1.setLabel("Find Prev");
  878.       this.button1.reshape(420, 178, 55, 18);
  879.       this.button1.setFont(new Font("Helvetica", 0, 11));
  880.       ((Container)this).add(this.button1);
  881.       this.button1.disable();
  882.       this.button2 = new Button();
  883.       this.button2.setLabel("Find First");
  884.       this.button2.reshape(478, 178, 55, 18);
  885.       this.button2.setFont(new Font("Helvetica", 0, 11));
  886.       ((Container)this).add(this.button2);
  887.       this.button3 = new Button();
  888.       this.button3.setLabel("Find Next");
  889.       this.button3.reshape(536, 178, 55, 18);
  890.       this.button3.setFont(new Font("Helvetica", 0, 11));
  891.       ((Container)this).add(this.button3);
  892.       this.button3.disable();
  893.       this.tfsearch = new TextField();
  894.       this.tfsearch.reshape(420, 156, 168, 20);
  895.       this.tfsearch.setFont(new Font("Helvetica", 0, 12));
  896.       this.tfsearch.setBackground(new Color(16777215));
  897.       ((Container)this).add(this.tfsearch);
  898.       this.label1 = new Label("Search Criteria", 1);
  899.       this.label1.reshape(420, 138, 168, 16);
  900.       this.label1.setFont(new Font("Helvetica", 0, 12));
  901.       ((Container)this).add(this.label1);
  902.       this.templabel = new Label("", 1);
  903.       this.templabel.reshape(430, 198, 150, 17);
  904.       this.templabel.setFont(new Font("Helvetica", 0, 11));
  905.       ((Container)this).add(this.templabel);
  906.       this.l18 = new Label("Comments");
  907.       this.l18.reshape(424, 215, 108, 16);
  908.       this.l18.setFont(new Font("Helvetica", 0, 11));
  909.       this.l18.setForeground(new Color(0));
  910.       ((Container)this).add(this.l18);
  911.       this.BView = new Button();
  912.       this.BView.setLabel("Zoom");
  913.       this.BView.reshape(546, 2, 46, 16);
  914.       this.BView.setFont(new Font("Helvetica", 1, 10));
  915.       ((Container)this).add(this.BView);
  916.       this.BComments = new Button();
  917.       this.BComments.setLabel("View");
  918.       this.BComments.reshape(544, 215, 46, 16);
  919.       this.BComments.setFont(new Font("Helvetica", 1, 10));
  920.       ((Container)this).add(this.BComments);
  921.       this.Group1 = new CheckboxGroup();
  922.       this.rb1 = new Checkbox("1", this.Group1, false);
  923.       this.rb1.reshape(388, 46, 15, 10);
  924.       ((Container)this).add(this.rb1);
  925.       this.rb2 = new Checkbox("2", this.Group1, false);
  926.       this.rb2.reshape(388, 68, 15, 10);
  927.       ((Container)this).add(this.rb2);
  928.       this.rb3 = new Checkbox("3", this.Group1, false);
  929.       this.rb3.reshape(388, 88, 15, 10);
  930.       ((Container)this).add(this.rb3);
  931.       this.rb4 = new Checkbox("4", this.Group1, false);
  932.       this.rb4.reshape(388, 108, 15, 10);
  933.       ((Container)this).add(this.rb4);
  934.       this.rb5 = new Checkbox("5", this.Group1, false);
  935.       this.rb5.reshape(388, 128, 15, 10);
  936.       ((Container)this).add(this.rb5);
  937.       this.rb6 = new Checkbox("6", this.Group1, false);
  938.       this.rb6.reshape(388, 148, 15, 10);
  939.       ((Container)this).add(this.rb6);
  940.       this.rb7 = new Checkbox("7", this.Group1, false);
  941.       this.rb7.reshape(388, 168, 15, 10);
  942.       ((Container)this).add(this.rb7);
  943.       this.rb8 = new Checkbox("8", this.Group1, false);
  944.       this.rb8.reshape(388, 188, 15, 10);
  945.       ((Container)this).add(this.rb8);
  946.       this.BFirst = new Button();
  947.       this.BFirst.setLabel("<<");
  948.       this.BFirst.reshape(156, 12, 30, 20);
  949.       this.BFirst.setFont(new Font("Dialog", 1, 12));
  950.       ((Container)this).add(this.BFirst);
  951.       this.BPrev = new Button();
  952.       this.BPrev.setLabel("<");
  953.       this.BPrev.reshape(188, 12, 30, 20);
  954.       this.BPrev.setFont(new Font("Dialog", 1, 12));
  955.       ((Container)this).add(this.BPrev);
  956.       this.BNext = new Button();
  957.       this.BNext.setLabel(">");
  958.       this.BNext.reshape(220, 12, 30, 20);
  959.       this.BNext.setFont(new Font("Dialog", 1, 12));
  960.       ((Container)this).add(this.BNext);
  961.       this.BLast = new Button();
  962.       this.BLast.setLabel(">>");
  963.       this.BLast.reshape(252, 12, 30, 20);
  964.       this.BLast.setFont(new Font("Dialog", 1, 12));
  965.       ((Container)this).add(this.BLast);
  966.       this.BCreated = new Button();
  967.       this.BCreated.setLabel("Powered by INSTAbase");
  968.       this.BCreated.reshape(426, 2, 115, 16);
  969.       this.BCreated.setFont(new Font("Arial", 1, 11));
  970.       ((Container)this).add(this.BCreated);
  971.       this.LReg = new Label("Unregistered version");
  972.       this.LReg.reshape(423, 3, 138, 16);
  973.       this.LReg.setFont(new Font("Helvetica", 1, 11));
  974.       this.LReg.setForeground(new Color(-8388608));
  975.       ((Container)this).add(this.LReg);
  976.       this.LNrRec = new Label("");
  977.       this.LNrRec.reshape(304, 14, 94, 18);
  978.       this.LNrRec.setFont(new Font("Helvetica", 0, 12));
  979.       this.LNrRec.setForeground(new Color(-8388608));
  980.       ((Container)this).add(this.LNrRec);
  981.       this.bGo3 = new Button();
  982.       this.bGo3.reshape(138, 64, 18, 17);
  983.       this.bGo3.setFont(new Font("Helvetica", 1, 10));
  984.       ((Container)this).add(this.bGo3);
  985.       this.bGo4 = new Button();
  986.       this.bGo4.reshape(138, 84, 18, 17);
  987.       this.bGo4.setFont(new Font("Helvetica", 1, 10));
  988.       ((Container)this).add(this.bGo4);
  989.       this.bGo5 = new Button();
  990.       this.bGo5.reshape(138, 104, 18, 17);
  991.       this.bGo5.setFont(new Font("Helvetica", 1, 10));
  992.       ((Container)this).add(this.bGo5);
  993.       this.bGo6 = new Button();
  994.       this.bGo6.reshape(138, 124, 18, 17);
  995.       this.bGo6.setFont(new Font("Helvetica", 1, 10));
  996.       ((Container)this).add(this.bGo6);
  997.       this.bGo7 = new Button();
  998.       this.bGo7.reshape(138, 144, 18, 17);
  999.       this.bGo7.setFont(new Font("Helvetica", 1, 10));
  1000.       ((Container)this).add(this.bGo7);
  1001.       this.bGo8 = new Button();
  1002.       this.bGo8.reshape(138, 164, 18, 17);
  1003.       this.bGo8.setFont(new Font("Helvetica", 1, 10));
  1004.       ((Container)this).add(this.bGo8);
  1005.       this.bGo9 = new Button();
  1006.       this.bGo9.reshape(138, 184, 18, 17);
  1007.       this.bGo9.setFont(new Font("Helvetica", 1, 10));
  1008.       ((Container)this).add(this.bGo9);
  1009.       this.bGo10 = new Button();
  1010.       this.bGo10.reshape(138, 204, 18, 17);
  1011.       this.bGo10.setFont(new Font("Helvetica", 1, 10));
  1012.       ((Container)this).add(this.bGo10);
  1013.       this.bGo11 = new Button();
  1014.       this.bGo11.reshape(138, 224, 18, 17);
  1015.       this.bGo11.setFont(new Font("Helvetica", 1, 10));
  1016.       ((Container)this).add(this.bGo11);
  1017.       this.bGo12 = new Button();
  1018.       this.bGo12.reshape(138, 244, 18, 17);
  1019.       this.bGo12.setFont(new Font("Helvetica", 1, 10));
  1020.       ((Container)this).add(this.bGo12);
  1021.       this.bGo13 = new Button();
  1022.       this.bGo13.reshape(138, 264, 18, 17);
  1023.       this.bGo13.setFont(new Font("Helvetica", 1, 10));
  1024.       ((Container)this).add(this.bGo13);
  1025.       this.bGo14 = new Button();
  1026.       this.bGo14.reshape(138, 284, 18, 17);
  1027.       this.bGo14.setFont(new Font("Helvetica", 1, 10));
  1028.       ((Container)this).add(this.bGo14);
  1029.       this.bGo15 = new Button();
  1030.       this.bGo15.reshape(138, 304, 18, 17);
  1031.       this.bGo15.setFont(new Font("Helvetica", 1, 10));
  1032.       ((Container)this).add(this.bGo15);
  1033.       this.bGo16 = new Button();
  1034.       this.bGo16.reshape(138, 324, 18, 17);
  1035.       this.bGo16.setFont(new Font("Helvetica", 1, 10));
  1036.       ((Container)this).add(this.bGo16);
  1037.       this.bGo17 = new Button();
  1038.       this.bGo17.reshape(138, 344, 18, 17);
  1039.       this.bGo17.setFont(new Font("Helvetica", 1, 10));
  1040.       ((Container)this).add(this.bGo17);
  1041.       this.t18 = new TextArea();
  1042.       this.t18.setEditable(false);
  1043.       this.t18.reshape(422, 233, 168, 130);
  1044.       this.t18.setFont(new Font("Helvetica", 0, 11));
  1045.       this.t18.setBackground(new Color(-2302756));
  1046.       ((Container)this).add(this.t18);
  1047.       this.rb9 = new Checkbox("9", this.Group1, false);
  1048.       this.rb9.reshape(388, 208, 15, 10);
  1049.       ((Container)this).add(this.rb9);
  1050.       this.rb10 = new Checkbox("10", this.Group1, false);
  1051.       this.rb10.reshape(388, 228, 15, 10);
  1052.       ((Container)this).add(this.rb10);
  1053.       this.rb11 = new Checkbox("11", this.Group1, false);
  1054.       this.rb11.reshape(388, 248, 15, 10);
  1055.       ((Container)this).add(this.rb11);
  1056.       this.rb12 = new Checkbox("12", this.Group1, false);
  1057.       this.rb12.reshape(388, 268, 15, 10);
  1058.       ((Container)this).add(this.rb12);
  1059.       this.rb16 = new Checkbox("16", this.Group1, false);
  1060.       this.rb16.reshape(388, 348, 15, 10);
  1061.       ((Container)this).add(this.rb16);
  1062.       this.rb15 = new Checkbox("15", this.Group1, false);
  1063.       this.rb15.reshape(388, 328, 15, 10);
  1064.       ((Container)this).add(this.rb15);
  1065.       this.rb14 = new Checkbox("14", this.Group1, false);
  1066.       this.rb14.reshape(388, 308, 15, 10);
  1067.       ((Container)this).add(this.rb14);
  1068.       this.rb13 = new Checkbox("13", this.Group1, false);
  1069.       this.rb13.reshape(388, 288, 15, 10);
  1070.       ((Container)this).add(this.rb13);
  1071.       this.norec = new Label("");
  1072.       this.norec.reshape(80, 14, 66, 16);
  1073.       this.norec.setAlignment(2);
  1074.       ((Container)this).add(this.norec);
  1075.       this.max_no_rec = 40000;
  1076.       this.local_no_rec = 10;
  1077.       this.isLocal = false;
  1078.       if (((Applet)this).getDocumentBase().toString().indexOf("file:") != -1) {
  1079.          this.max_no_rec = this.local_no_rec;
  1080.          this.isLocal = true;
  1081.          this.hide_butt();
  1082.       }
  1083.  
  1084.       this.field_18 = new String[this.max_no_rec][17];
  1085.       this.LReg.hide();
  1086.       this.sProvider = this.sProvider + "ww";
  1087.       this.lmess.hide();
  1088.       this.bar1 = new Label("");
  1089.       this.bar1.reshape(24, 28, 8, 10);
  1090.       this.bar1.setFont(new Font("Helvetica", 1, 12));
  1091.       ((Container)this).add(this.bar1);
  1092.       this.bar2 = new Label("");
  1093.       this.bar2.reshape(32, 28, 8, 10);
  1094.       this.bar2.setFont(new Font("Helvetica", 1, 12));
  1095.       ((Container)this).add(this.bar2);
  1096.       this.bar3 = new Label("");
  1097.       this.bar3.reshape(40, 28, 8, 10);
  1098.       this.bar3.setFont(new Font("Helvetica", 1, 12));
  1099.       ((Container)this).add(this.bar3);
  1100.       this.bar4 = new Label("");
  1101.       this.bar4.reshape(48, 28, 8, 10);
  1102.       this.bar4.setFont(new Font("Helvetica", 1, 12));
  1103.       ((Container)this).add(this.bar4);
  1104.       this.bar5 = new Label("");
  1105.       this.bar5.reshape(56, 28, 8, 10);
  1106.       this.bar5.setFont(new Font("Helvetica", 1, 12));
  1107.       ((Container)this).add(this.bar5);
  1108.       this.bar6 = new Label("");
  1109.       this.bar6.reshape(62, 28, 8, 10);
  1110.       this.bar6.setFont(new Font("Helvetica", 1, 12));
  1111.       ((Container)this).add(this.bar6);
  1112.       this.bar7 = new Label("");
  1113.       this.bar7.reshape(70, 28, 8, 10);
  1114.       this.bar7.setFont(new Font("Helvetica", 1, 12));
  1115.       ((Container)this).add(this.bar7);
  1116.       this.bar8 = new Label("");
  1117.       this.bar8.reshape(78, 28, 8, 10);
  1118.       this.bar8.setFont(new Font("Helvetica", 1, 12));
  1119.       ((Container)this).add(this.bar8);
  1120.       this.bar9 = new Label("");
  1121.       this.bar9.reshape(86, 28, 8, 10);
  1122.       this.bar9.setFont(new Font("Helvetica", 1, 12));
  1123.       ((Container)this).add(this.bar9);
  1124.       this.bar10 = new Label("");
  1125.       this.bar10.reshape(94, 28, 8, 10);
  1126.       this.bar10.setFont(new Font("Helvetica", 1, 12));
  1127.       ((Container)this).add(this.bar10);
  1128.       this.label_bar = new Label("");
  1129.       this.label_bar.reshape(110, 27, 55, 13);
  1130.       this.label_bar.setFont(new Font("Helvetica", 1, 11));
  1131.       ((Container)this).add(this.label_bar);
  1132.       this.LNrRec.hide();
  1133.       this.lbar[0] = this.bar1;
  1134.       this.lbar[1] = this.bar2;
  1135.       this.lbar[2] = this.bar3;
  1136.       this.lbar[3] = this.bar4;
  1137.       this.lbar[4] = this.bar5;
  1138.       this.sProvider = this.sProvider + ".";
  1139.       this.lbar[5] = this.bar6;
  1140.       this.lbar[6] = this.bar7;
  1141.       this.lbar[7] = this.bar8;
  1142.       this.lbar[8] = this.bar9;
  1143.       this.lbar[9] = this.bar10;
  1144.       this.vec_rb[0] = this.rb1;
  1145.       this.vec_rb[1] = this.rb2;
  1146.       this.vec_rb[2] = this.rb3;
  1147.       this.vec_rb[3] = this.rb4;
  1148.       this.vec_rb[4] = this.rb5;
  1149.       this.sProvider = this.sProvider + "Ins";
  1150.       this.vec_rb[5] = this.rb6;
  1151.       this.vec_rb[6] = this.rb7;
  1152.       this.vec_rb[7] = this.rb8;
  1153.       this.vec_rb[8] = this.rb9;
  1154.       this.vec_rb[9] = this.rb10;
  1155.       this.sProvider = this.sProvider + "tab";
  1156.       this.vec_rb[10] = this.rb11;
  1157.       this.vec_rb[11] = this.rb12;
  1158.       this.vec_rb[12] = this.rb13;
  1159.       this.vec_rb[13] = this.rb14;
  1160.       this.vec_rb[14] = this.rb15;
  1161.       this.sProvider = this.sProvider + "as";
  1162.       this.vec_rb[15] = this.rb16;
  1163.       this.sProvider = this.sProvider + "e.c";
  1164.       this.hide_data();
  1165.       this.BCreated.hide();
  1166.  
  1167.       try {
  1168.          String var1 = new String(((Applet)this).getParameter("created"));
  1169.          if (var1 != null) {
  1170.             this.c_d = this.StrToInt(var1);
  1171.             if (this.c_d == 0) {
  1172.                this.field_1.hide();
  1173.                this.field_0.hide();
  1174.             }
  1175.          }
  1176.       } catch (NullPointerException var25) {
  1177.       }
  1178.  
  1179.       String var30 = ((Applet)this).getParameter("table");
  1180.       String var2 = ((Applet)this).getParameter("label");
  1181.       String var3 = ((Applet)this).getParameter("dataname");
  1182.       String var4 = ((Applet)this).getParameter("site");
  1183.       String var5 = ((Applet)this).getParameter("color");
  1184.       String var6 = ((Applet)this).getParameter("textcolor");
  1185.       String var7 = ((Applet)this).getParameter("fieldnr");
  1186.       if (var30 != null) {
  1187.          this.file1 = var30;
  1188.       }
  1189.  
  1190.       if (var2 != null) {
  1191.          this.file2 = var2;
  1192.       }
  1193.  
  1194.       if (var3 != null) {
  1195.          this.dataname = var3;
  1196.       }
  1197.  
  1198.       if (var4 != null) {
  1199.          this.site = var4;
  1200.       }
  1201.  
  1202.       this.fnr = this.StrToInt(var7);
  1203.       if (this.fnr < 0 || this.fnr > 17) {
  1204.          this.fnr = 3;
  1205.       }
  1206.  
  1207.       this.imgcom = ((Applet)this).getParameter("imgcom");
  1208.       this.image = ((Applet)this).getParameter("image");
  1209.       this.comment = ((Applet)this).getParameter("comment");
  1210.       this.sProvider = this.sProvider + "o";
  1211.       this.sProvider = this.sProvider + "m";
  1212.       if (this.imgcom == null || this.StrToInt(this.imgcom) == 0) {
  1213.          this.imgcom = null;
  1214.       }
  1215.  
  1216.       if (this.image == null || this.StrToInt(this.image) == 0) {
  1217.          this.image = null;
  1218.       }
  1219.  
  1220.       if (this.comment == null || this.StrToInt(this.comment) == 0) {
  1221.          this.comment = null;
  1222.       }
  1223.  
  1224.       if (this.imgcom != null && this.image == null && this.comment != null) {
  1225.          this.t18.reshape(418, 34, 170, 104);
  1226.          this.BComments.reshape(546, 2, 46, 16);
  1227.          this.l18.reshape(426, 18, 108, 16);
  1228.       }
  1229.  
  1230.       if (this.imgcom == null || this.image == null && this.comment == null) {
  1231.          this.t18.hide();
  1232.          this.l18.hide();
  1233.          this.BView.hide();
  1234.          this.BComments.hide();
  1235.          this.BView = new Button("View Picture");
  1236.          this.BView.reshape(421, 25, 112, 20);
  1237.          this.BView.setFont(new Font("Helvetica", 1, 10));
  1238.          ((Container)this).add(this.BView);
  1239.          this.BComments = new Button("View Comments");
  1240.          this.BComments.reshape(421, 50, 112, 19);
  1241.          this.BComments.setFont(new Font("Helvetica", 1, 10));
  1242.          ((Container)this).add(this.BComments);
  1243.          byte var8 = 0;
  1244.          byte var9 = 0;
  1245.          if (this.comment == null) {
  1246.             var9 = 22;
  1247.          }
  1248.  
  1249.          if (this.image == null) {
  1250.             var8 = 25;
  1251.             this.BComments.reshape(421, 25, 112, 19);
  1252.          }
  1253.  
  1254.          this.label1.reshape(420, 70 - var9 - var8, 168, 16);
  1255.          this.tfsearch.reshape(420, 88 - var9 - var8, 168, 20);
  1256.          this.button1.reshape(420, 110 - var9 - var8, 55, 18);
  1257.          this.button2.reshape(478, 110 - var9 - var8, 55, 18);
  1258.          this.button3.reshape(536, 110 - var9 - var8, 55, 18);
  1259.          this.templabel.reshape(430, 130 - var9 - var8, 150, 17);
  1260.       }
  1261.  
  1262.       this.tfsearch.requestFocus();
  1263.       if (var5 == null || var6 == null) {
  1264.          var5 = "FFFFFF";
  1265.          var6 = "000000";
  1266.       }
  1267.  
  1268.       int var31;
  1269.       int var32;
  1270.       if ((var31 = this.HexStrToInt(var5)) >= 0 && (var32 = this.HexStrToInt(var6)) >= 0) {
  1271.          Color var10 = new Color(var31);
  1272.          Color var11 = new Color(var32);
  1273.          this.Appletcolor = var10;
  1274.          if (this.comment == null) {
  1275.             this.t18.hide();
  1276.             this.BComments.hide();
  1277.             this.l18.hide();
  1278.          }
  1279.  
  1280.          if (this.image == null) {
  1281.             this.BView.hide();
  1282.          }
  1283.  
  1284.          Label[] var12 = new Label[]{this.field_1, this.field_2, this.field_3, this.field_4, this.field_5, this.field_6, this.field_7, this.field_8, this.field_9, this.l10, this.l11, this.l12, this.l13, this.l14, this.l15, this.l16, this.l17, this.l18, this.label1, this.LReg, this.templabel, this.LNrRec, this.norec};
  1285.          TextField[] var13 = new TextField[]{this.field_0, this.field_10, this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
  1286.  
  1287.          try {
  1288.             new String("");
  1289.             int var17 = 10;
  1290.             int var18 = 0;
  1291.             new String("");
  1292.             new String("");
  1293.             String var21 = new String(((Applet)this).getParameter("labelfont"));
  1294.             int var14 = var21.indexOf(",");
  1295.             String var16 = var21.substring(0, var14);
  1296.             int var15 = var21.indexOf(",", var14 + 1);
  1297.             String var19 = var21.substring(var14 + 1, var15);
  1298.             String var20 = var21.substring(var15 + 1);
  1299.             var17 = this.StrToInt(var20);
  1300.             var18 = this.StrToInt(var19);
  1301.             if (var18 < 0 || var18 > 3) {
  1302.                var18 = 0;
  1303.             }
  1304.  
  1305.             for(int var22 = 0; var22 < this.fnr; ++var22) {
  1306.                var12[var22].setFont(new Font(var16, var18, var17));
  1307.             }
  1308.          } catch (NullPointerException var29) {
  1309.          }
  1310.  
  1311.          try {
  1312.             new String("");
  1313.             int var38 = 10;
  1314.             int var44 = 0;
  1315.             new String("");
  1316.             new String("");
  1317.             String var54 = new String(((Applet)this).getParameter("textfieldfont"));
  1318.             int var33 = var54.indexOf(",");
  1319.             String var35 = var54.substring(0, var33);
  1320.             int var34 = var54.indexOf(",", var33 + 1);
  1321.             String var48 = var54.substring(var33 + 1, var34);
  1322.             String var51 = var54.substring(var34 + 1);
  1323.             var38 = this.StrToInt(var51);
  1324.             var44 = this.StrToInt(var48);
  1325.             if (var44 < 0 || var44 > 3) {
  1326.                var44 = 0;
  1327.             }
  1328.  
  1329.             for(int var56 = 0; var56 < this.fnr; ++var56) {
  1330.                var13[var56].setFont(new Font(var35, var44, var38));
  1331.             }
  1332.          } catch (NullPointerException var28) {
  1333.          }
  1334.  
  1335.          this.stab = new int[this.fnr - 1];
  1336.  
  1337.          for(int var36 = 0; var36 < this.fnr - 1; ++var36) {
  1338.             this.stab[var36] = var36 + 2;
  1339.          }
  1340.  
  1341.          try {
  1342.             String var40 = new String(((Applet)this).getParameter("searchfields"));
  1343.             StringTokenizer var46 = new StringTokenizer(var40, ",");
  1344.             int var49 = 0;
  1345.  
  1346.             for(int var52 = 0; var52 < this.fnr - 1; ++var52) {
  1347.                this.stab[var52] = 0;
  1348.             }
  1349.  
  1350.             while(var46.hasMoreTokens() && var49 <= this.fnr - 2) {
  1351.                this.stab[var49++] = this.StrToInt(var46.nextToken());
  1352.             }
  1353.          } catch (NullPointerException var27) {
  1354.          }
  1355.  
  1356.          if (!this.isLocal) {
  1357.             this.show_data();
  1358.          }
  1359.  
  1360.          boolean var47 = false;
  1361.          boolean var41 = false;
  1362.          ((Component)this).setBackground(var10);
  1363.  
  1364.          for(int var50 = 1; var50 <= 23; ++var50) {
  1365.             var12[var50 - 1].setBackground(var10);
  1366.             var12[var50 - 1].setForeground(var11);
  1367.          }
  1368.  
  1369.          for(int var53 = 0; var53 < 10; ++var53) {
  1370.             this.lbar[var53].setBackground(var10);
  1371.             this.lbar[var53].setForeground(var11);
  1372.          }
  1373.  
  1374.          this.label_bar.setBackground(var10);
  1375.          this.label_bar.setForeground(var11);
  1376.          this.lmess.setBackground(var10);
  1377.          this.lmess.setForeground(var11);
  1378.          this.labelColor = var11;
  1379.  
  1380.          for(int var42 = 0; var42 < 10; ++var42) {
  1381.             this.lbar[var42].move(285 + 8 * var42, 17);
  1382.          }
  1383.  
  1384.          this.label_bar.move(367, 16);
  1385.          this.label_bar.setText("Loading...");
  1386.          int var55 = 2;
  1387.  
  1388.          try {
  1389.             String var57 = new String(((Applet)this).getParameter("pre_selected"));
  1390.             if (var57 != null) {
  1391.                var55 = this.StrToInt(var57);
  1392.             }
  1393.  
  1394.             if (var55 < 2 || var55 > this.fnr) {
  1395.                var55 = 2;
  1396.             }
  1397.  
  1398.             boolean var23 = false;
  1399.  
  1400.             for(int var24 = 0; var24 < this.fnr - 1 && this.stab[var24] != 0; ++var24) {
  1401.                if (var55 == this.stab[var24]) {
  1402.                   var23 = true;
  1403.                   break;
  1404.                }
  1405.             }
  1406.  
  1407.             if (!var23) {
  1408.                var55 = 2;
  1409.             }
  1410.          } catch (NullPointerException var26) {
  1411.          }
  1412.  
  1413.          this.vec_rb[var55 - 2].setState(true);
  1414.          if (this.mainThread == null) {
  1415.             this.mainThread = new Thread(this);
  1416.             this.mainThread.start();
  1417.          }
  1418.  
  1419.       } else {
  1420.          this.templabel.setText("Color Error");
  1421.       }
  1422.    }
  1423.  
  1424.    public boolean handleEvent(Event var1) {
  1425.       if (var1.id == 502) {
  1426.          int var7 = var1.x;
  1427.          int var8 = var1.y;
  1428.          if (var7 <= 35 && var8 <= 35) {
  1429.             Object var9 = null;
  1430.  
  1431.             try {
  1432.                this.site = ((Applet)this).getCodeBase().toString();
  1433.                String var12 = this.site.replace('/', '!');
  1434.                if (this.Register == 1) {
  1435.                   var12 = var12 + "!" + this.dataname + "!" + "u.html";
  1436.                } else {
  1437.                   var12 = var12 + "!" + this.dataname + "!" + "r.html";
  1438.                }
  1439.  
  1440.                URL var11 = new URL("http://" + this.sProvider + "/" + var12);
  1441.                ((Applet)this).getAppletContext().showDocument(var11, "_blank");
  1442.             } catch (MalformedURLException var6) {
  1443.                var9 = null;
  1444.             }
  1445.  
  1446.             return true;
  1447.          } else {
  1448.             return false;
  1449.          }
  1450.       } else {
  1451.          if (var1.id == 1001) {
  1452.             if (var1.target == this.button2) {
  1453.                this.button2_Clicked(var1);
  1454.                return true;
  1455.             }
  1456.  
  1457.             if (var1.target == this.button3) {
  1458.                this.button3_Clicked(var1);
  1459.                return true;
  1460.             }
  1461.  
  1462.             if (var1.target == this.button1) {
  1463.                this.button1_Clicked(var1);
  1464.                return true;
  1465.             }
  1466.  
  1467.             Checkbox[] var2 = new Checkbox[]{this.rb1, this.rb2, this.rb3, this.rb4, this.rb5, this.rb6, this.rb7, this.rb8, this.rb9, this.rb10, this.rb11, this.rb12, this.rb13, this.rb14, this.rb15, this.rb16};
  1468.  
  1469.             for(int var3 = 0; var3 < 16; ++var3) {
  1470.                if (var1.target == var2[var3]) {
  1471.                   this.rb1_Action(var1);
  1472.                   return true;
  1473.                }
  1474.             }
  1475.  
  1476.             if (var1.target == this.BFirst) {
  1477.                this.BFirst_Clicked(var1);
  1478.                return true;
  1479.             }
  1480.  
  1481.             if (var1.target == this.BPrev) {
  1482.                this.BPrev_Clicked(var1);
  1483.                return true;
  1484.             }
  1485.  
  1486.             if (var1.target == this.BNext) {
  1487.                this.BNext_Clicked(var1);
  1488.                return true;
  1489.             }
  1490.  
  1491.             if (var1.target == this.BLast) {
  1492.                this.BLast_Clicked(var1);
  1493.                return true;
  1494.             }
  1495.  
  1496.             if (var1.target == this.tfsearch) {
  1497.                this.tfsearch_EnterHit(var1);
  1498.                return true;
  1499.             }
  1500.  
  1501.             if (var1.target == this.BView) {
  1502.                this.BView_Clicked(var1);
  1503.                return true;
  1504.             }
  1505.  
  1506.             if (var1.target == this.BComments) {
  1507.                this.BComments_Clicked(var1);
  1508.                return true;
  1509.             }
  1510.  
  1511.             if (var1.target == this.BCreated) {
  1512.                this.BCreated_Clicked(var1);
  1513.                return true;
  1514.             }
  1515.  
  1516.             Button[] var4 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
  1517.  
  1518.             for(int var5 = 0; var5 < 15; ++var5) {
  1519.                if (var1.target == var4[var5]) {
  1520.                   this.bGo3_Clicked(var1, var4[var5]);
  1521.                   return true;
  1522.                }
  1523.             }
  1524.          }
  1525.  
  1526.          if (this.upd == 1) {
  1527.             this.upd = 0;
  1528.             this.show_record(0);
  1529.          }
  1530.  
  1531.          return super.handleEvent(var1);
  1532.       }
  1533.    }
  1534.  
  1535.    public int StrToInt(String var1) {
  1536.       int var2 = 0;
  1537.  
  1538.       for(int var3 = 0; var3 < var1.length(); ++var3) {
  1539.          switch (var1.charAt(var1.length() - var3 - 1)) {
  1540.             case '0':
  1541.                var2 += 0 * (int)Math.pow((double)10.0F, (double)var3);
  1542.                break;
  1543.             case '1':
  1544.                var2 += (int)Math.pow((double)10.0F, (double)var3);
  1545.                break;
  1546.             case '2':
  1547.                var2 += 2 * (int)Math.pow((double)10.0F, (double)var3);
  1548.                break;
  1549.             case '3':
  1550.                var2 += 3 * (int)Math.pow((double)10.0F, (double)var3);
  1551.                break;
  1552.             case '4':
  1553.                var2 += 4 * (int)Math.pow((double)10.0F, (double)var3);
  1554.                break;
  1555.             case '5':
  1556.                var2 += 5 * (int)Math.pow((double)10.0F, (double)var3);
  1557.                break;
  1558.             case '6':
  1559.                var2 += 6 * (int)Math.pow((double)10.0F, (double)var3);
  1560.                break;
  1561.             case '7':
  1562.                var2 += 7 * (int)Math.pow((double)10.0F, (double)var3);
  1563.                break;
  1564.             case '8':
  1565.                var2 += 8 * (int)Math.pow((double)10.0F, (double)var3);
  1566.                break;
  1567.             case '9':
  1568.                var2 += 9 * (int)Math.pow((double)10.0F, (double)var3);
  1569.                break;
  1570.             default:
  1571.                return -1;
  1572.          }
  1573.       }
  1574.  
  1575.       return var2;
  1576.    }
  1577.  
  1578.    public int HexStrToInt(String var1) {
  1579.       int var2 = 0;
  1580.  
  1581.       for(int var3 = 0; var3 < var1.length(); ++var3) {
  1582.          switch (var1.charAt(var1.length() - var3 - 1)) {
  1583.             case '0':
  1584.                var2 += 0 * (int)Math.pow((double)16.0F, (double)var3);
  1585.                break;
  1586.             case '1':
  1587.                var2 += (int)Math.pow((double)16.0F, (double)var3);
  1588.                break;
  1589.             case '2':
  1590.                var2 += 2 * (int)Math.pow((double)16.0F, (double)var3);
  1591.                break;
  1592.             case '3':
  1593.                var2 += 3 * (int)Math.pow((double)16.0F, (double)var3);
  1594.                break;
  1595.             case '4':
  1596.                var2 += 4 * (int)Math.pow((double)16.0F, (double)var3);
  1597.                break;
  1598.             case '5':
  1599.                var2 += 5 * (int)Math.pow((double)16.0F, (double)var3);
  1600.                break;
  1601.             case '6':
  1602.                var2 += 6 * (int)Math.pow((double)16.0F, (double)var3);
  1603.                break;
  1604.             case '7':
  1605.                var2 += 7 * (int)Math.pow((double)16.0F, (double)var3);
  1606.                break;
  1607.             case '8':
  1608.                var2 += 8 * (int)Math.pow((double)16.0F, (double)var3);
  1609.                break;
  1610.             case '9':
  1611.                var2 += 9 * (int)Math.pow((double)16.0F, (double)var3);
  1612.                break;
  1613.             case 'A':
  1614.                var2 += 10 * (int)Math.pow((double)16.0F, (double)var3);
  1615.                break;
  1616.             case 'B':
  1617.                var2 += 11 * (int)Math.pow((double)16.0F, (double)var3);
  1618.                break;
  1619.             case 'C':
  1620.                var2 += 12 * (int)Math.pow((double)16.0F, (double)var3);
  1621.                break;
  1622.             case 'D':
  1623.                var2 += 13 * (int)Math.pow((double)16.0F, (double)var3);
  1624.                break;
  1625.             case 'E':
  1626.                var2 += 14 * (int)Math.pow((double)16.0F, (double)var3);
  1627.                break;
  1628.             case 'F':
  1629.                var2 += 15 * (int)Math.pow((double)16.0F, (double)var3);
  1630.                break;
  1631.             case 'a':
  1632.                var2 += 10 * (int)Math.pow((double)16.0F, (double)var3);
  1633.                break;
  1634.             case 'b':
  1635.                var2 += 11 * (int)Math.pow((double)16.0F, (double)var3);
  1636.                break;
  1637.             case 'c':
  1638.                var2 += 12 * (int)Math.pow((double)16.0F, (double)var3);
  1639.                break;
  1640.             case 'd':
  1641.                var2 += 13 * (int)Math.pow((double)16.0F, (double)var3);
  1642.                break;
  1643.             case 'e':
  1644.                var2 += 14 * (int)Math.pow((double)16.0F, (double)var3);
  1645.                break;
  1646.             case 'f':
  1647.                var2 += 15 * (int)Math.pow((double)16.0F, (double)var3);
  1648.                break;
  1649.             default:
  1650.                return -1;
  1651.          }
  1652.       }
  1653.  
  1654.       return var2;
  1655.    }
  1656.  
  1657.    public void update(Graphics var1) {
  1658.       this.oldaidx = this.aidx;
  1659.       this.aidx = (this.aidx + 1) % 8;
  1660.       var1.setColor(this.mycolor);
  1661.       var1.drawOval(this.posx[this.oldaidx], this.posy[this.oldaidx], 4, 4);
  1662.       var1.fillOval(this.posx[this.oldaidx], this.posy[this.oldaidx], 4, 4);
  1663.       var1.setColor(this.labelColor);
  1664.       var1.drawOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
  1665.       var1.fillOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
  1666.       if (this.barThread == null || this.barThread.barThread == null) {
  1667.          this.updateImg(var1);
  1668.       }
  1669.  
  1670.    }
  1671.  
  1672.    public void updateImg(Graphics var1) {
  1673.       if (this.imgcom != null && this.image != null) {
  1674.          try {
  1675.             if (this.ImageC != null && this.ImageC.getHeight(this) > 0) {
  1676.                var1.drawImage(this.ImageC, 422, 24, 170, 110, this);
  1677.             } else {
  1678.                var1.setColor(this.Appletcolor);
  1679.                var1.fillRect(422, 24, 170, 110);
  1680.             }
  1681.          } catch (NullPointerException var2) {
  1682.          }
  1683.       }
  1684.    }
  1685.  
  1686.    public void paint(Graphics var1) {
  1687.       var1.setColor(this.mycolor);
  1688.       var1.setColor(this.labelColor);
  1689.       var1.setFont(this.ft1);
  1690.       var1.drawString("I", 9, 28);
  1691.       var1.setFont(this.ft2);
  1692.       var1.drawString("b", 15, 28);
  1693.       var1.setColor(this.mycolor);
  1694.  
  1695.       for(int var2 = 0; var2 < 8; ++var2) {
  1696.          var1.drawOval(this.posx[var2], this.posy[var2], 4, 4);
  1697.          var1.fillOval(this.posx[var2], this.posy[var2], 4, 4);
  1698.       }
  1699.  
  1700.       var1.setColor(this.labelColor);
  1701.       var1.drawOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
  1702.       var1.fillOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
  1703.       this.updateImg(var1);
  1704.    }
  1705. }
  1706.